package com.example.serenity.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.serenity.controller.model.Query;
import com.example.serenity.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MessageMapper extends BaseMapper<Message> {
    List<Message> getList(Query query);
    List<String> getLabels();
    Message getOne(Integer id);
    void like(Integer id);
}
